package com.google.code.syncgear.core;

import javax.cache.Cache;

import com.google.appengine.api.datastore.DatastoreService;

public final class Environment {
	
	private static DatastoreService datastoreService;
	
	private static Cache cache;

	public static DatastoreService getDatastoreService() {
		return datastoreService;
	}
	public static void setDatastoreService(Object datastoreServiceContext) {
		DatastoreService datastoreService = (DatastoreService) datastoreServiceContext;
		Environment.datastoreService = datastoreService;
	}
	public static Cache getCache() {
		return cache;
	}
	public static void setCache(Object cacheContext) {
		Environment.cache = (Cache) cacheContext;
	}
	
}